package com.jiaoyou.baojian.activity;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
import android.view.Window;
import android.view.WindowManager;

import com.jiaoyou.baojian.daemon.VMDaemonManager;

/**
 * Created by DemonZYM on 17/12/27.
 */

public class OnePiexlActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d("OnePiexlActivity", "OnePiexlActivity -> onCreate");

        Window window = getWindow();
        window.setGravity(Gravity.LEFT | Gravity.TOP);
        WindowManager.LayoutParams lp = window.getAttributes();
        lp.width = 1;
        lp.height = 1;

        window.setAttributes(lp);

        VMDaemonManager.getInstance().setDaemonActivity(this);
    }

    @Override
    public int getContentView() {
        return 0;
    }

}
